import request from '@/utils/request'

// 定义公共的api 
const BASE_URL = '/system/busUser0a';

export default {
    // 查询用户和分页
    getPageInfo(page, limit, searchObj) {
        return request({
            url: `${BASE_URL}/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },
    // 撤销
    removeById(id) {
        return request({
            url: `${BASE_URL}/remove/${id}`,
            method: 'delete'
        })
    },

    listHistory(id) {
        return request({
            url: `${BASE_URL}/history/${id}`,
            method: 'get'
        })
    },
    getProcess(id) {
        return request({
            url: `${BASE_URL}/processing/${id}`,
            method: 'get'
        })
    },

}